package com.qy566.gps.pulsar.api;

import com.qy566.gps.common.requests.BaseResponse;
import com.qy566.gps.pulsar.entidy.Position;
import com.qy566.gps.pulsar.entidy.SendPulsarParams;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author wangnaiqi
 * @since 2024/3/21
 */

@RequestMapping
public interface PulsarController {
    @PostMapping("/send")
    BaseResponse<String> sendPulsar(@RequestBody @Validated SendPulsarParams sopRequest);

    @PostMapping("/sendBatchPosition")
    BaseResponse<String> sendBatchPositionPulsar(@RequestBody @Validated Position position);

    @PostMapping("/sendPosition")
    BaseResponse<String> sendPositionPulsar(@RequestBody @Validated Position position);
}
